﻿using System;

namespace Controller
{
    public sealed class FactoryControllerBO
    {
        private static FactoryControllerBO _CurrentFA;
        public static FactoryControllerBO CurrentFA
        {
            get 
            {
                if (_CurrentFA == null)
                    _CurrentFA = new FactoryControllerBO();
                return FactoryControllerBO._CurrentFA; 
            }
       
        }

        #region ServerExplorer

        public ControlSelectorBO CreateContorlSelectorBOInstance()
        {

            return new ControlSelectorBO();
        }

        public ServerExplorerBO CreateServerExplorerBOInstance()
        {
            return new ServerExplorerBO();
        }

        public ServerConnectBO CreateServerConnectBOInstance()
        {
            return new ServerConnectBO();
        }

        public TableSelectorBO CreateTableSelectorBOInstace()
        {
            return new TableSelectorBO();
        }
        #endregion

        #region Designer

        public PropertyGridBO CreateProperGridBOInstance()
        {
            return new PropertyGridBO();
        }

        public CoreBO CreateCoreBOInstance()
        {
            return new CoreBO();
        }

        public CodeFactaryBO CreateCodeFactaryBOInstance()
        {
            return new CodeFactaryBO();
        }
        #endregion

        #region Common
  
        public OptionBO CreateOptionBOInstance()
        {
            return new OptionBO();
        }

        #endregion
    }
}